Check tomcat memory usage by the program and view tomcat memory usageRecently, the company's online tomcat often has no chance of downtime, and summarizes the problem locating methods for reference only:Error message:
Maximum numb
239.75m. We will adjust it to 512 M.
To define the property information to take effect at startup, You need to define it in the/bin/Catalina. Sh script.
Edit $ catalina_home/bin/Catalina. Sh, search java_opts, and find the prompt segment.
Use the following command to define:
Java_opts = "$ java_opts-xmx512m"
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/46/11/wKiom1Ptv06hBOXwAAGjdeBuFY8631.jpg "Title =" N _ % 57wck % C $ p_q7c ~ Gy9 ~ M6.jpg "alt =" wkiom1ptv06hboxwaagjdebufy8
line, direct operation stats, stats slabs and other commands for analysismemcached.php = "PHP system using Apache service, graphical interfaceDaemontools = "Don't know what it is, write it down first."Nagios = "Checktcp =" don't know what it is, write it down first.Optimization ideas1. Reasonable growth factor and control the reasonable consumption of memory2. cache update mechanism = Update the cache when it is about to expireMemcached Learning--memcached
The main reference to this man's article http://elf8848.iteye.com/blog/471676
Do not find after doing, the original Linux server configured a number of network cards, after setting the Djava.rmi.server.hostname property for the current server's IP, you can connect to.Please edit the tomcat/bin/catalina.sh and add the next parameter below the java_opts.java_opts= "-dcom.sun.management.jmxremote.port=port -djava.rmi.server.hostname=XX.XX.XX.XXX - Dcom
display of DataView is inaccurate.Workaround (Pending validation):1. Use the built-in Zabbix variable proc.cpu.util[2. Modify the commands in the script, using the following method instead:First, get the PID of the process name, and then combine top to run the following command:Top-b-n 1-p $pid 2>1 | Awk-v pid= $pid ' {if (= = pid) print $9} '3. Modify the commands in the script, using the following method instead:The PID of the process name is obtained first, and then the relevant data is read
/jprofiler.exe2. Execution Menu Sessionàintegration wizardsànew serverintegrationChoose whether to test locally or remotely:Select the script file that Tomcat runs:Select the type of virtual machine:Select the monitoring port:With the default, you canSelect whether the Web container runs with Jprofiler:By default you canConfiguration tips:You should read it carefully when you are "remote control".Then choos
: Available memory size
Buff: The amount of memory used as a buffer
Cache: The amount of memory used as a buffer
Swap:
Si: Write to memory size per second from swap area
So: The amount of memory written t
Zabbix monitoring memory usage of processes on Windows serversIt is not easy to get a process's memory or CPU usage on a Windows server because the Windows Server cannot use top like Linux, or is similar to the data information in the/pro directory.Here, the
Label:5.7 of Performance_schema already have the ability to monitor the memory usage of MySQL, for this is to be achieved through the instrument, because the memory this piece does not have a corresponding consumer so long as Well, it's okay to configure instrument. 1. Example: /etc/my.cnf [mysqld]
datadir =/usr/local/mysql/dat
5.7 of Performance_schema already have the ability to monitor the memory usage of MySQL, for this is to be achieved through the instrument, because the memory this piece does not have a corresponding consumer so long asWell, it's okay to configure instrument.1. Example:/etc/my.cnf[Mysqld]datadir =/usr/local/mysql/databasedir
interval time period.
Cases
The code is as follows:
# mpstat-p All 2 #查看多核CPU核心的当前运行状况信息, updated every 2 seconds
Field Letter Meaning:
%user in internal time period, User State CPU time (%), does not contain nice value is negative process (usr/total) *100
%nice in the internal time period, the nice value is the CPU time of the negative process (%) (nice/total) *100
%sys in internal time period, kernel time (%) (system/total) *100
%iowait in internal time period, hard disk I
monitoring of the tomcat thread pool and the number of custom thread pools still worrying about the mystery of the tomcat thread pool? Are you still worried about the black box of your own thread pool? Let's see:
Our tomcat just started, we can see from there is only one http-8080-Acceptor-0 thread, we go to access
Optimized tomcat memory and connections and tomcat memory
1. Check the memory size that can be set by the system.
Java-Xmx1024M-version (1024 indicates whether the memory can be adjusted to this value)
2. Set
Article Title: Linux memory monitoring Memory leakage and memory recovery methods. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
From the perspective of the user's program, the
In Linux often found that there is little free memory, it seems that all the memory is occupied by the system, the surface is not enough memory, it is not. This is a good feature of Linux memory management, the main feature is that no matter how large the physical memory, Li
From Xuwanbest blog so-called "工欲善其事, its prerequisite", good tools can play the role of half-times. The most I have used is two jconsole and Jprofiler. Jconsole monitors system memory changes, and if there is a memory overflow, garbage collection will appear jagged. After discovering the problem, use Jprofiler to monitor the object changes under small pressure (or no pressure) and locate the cause of
/appendix/triggers/functions2.6 Verifying TriggerBecause I set the switch CPU utilization above 20% will trigger the trigger alarm, so after the creation of trigger completed, after a minute or so, my mail received the problem message shown, the configuration has been in effect.650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/82/D5/wKioL1diJCbh28qzAACdvp9k1CY348.jpg "/>Then the threshold of 20% is adjusted to 80%, after a minute or so, my mail received the OK message shown, the configu
System CentOS6.4 Yum installed Tomcat6 and jdk1.6, the installation configuration process is as follows:
Http://www.111cn.net/sys/CentOS/72007.htm
The deployment of two projects A and B in Tomcat, as well as the time of memory overflow error in the deployment times, the system CPU load is soaring, and a, B, and only multiple a, or just multiple B-project systems are deployed separately for normal operatio
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.